﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore.Design;

namespace Entity
{
    public class ApiDBContext : DbContext
    {
        public ApiDBContext(DbContextOptions<ApiDBContext> opts) : base(opts)
        {

        }

        public DbSet<EntityBase> EntityBase { get; set; }

        //protected override void OnModelCreating(ModelBuilder modelBuilder)
        //{
        //    modelBuilder.Entity<EntityBase>().HasData([
        //        new EntityBase()
        //        {
        //            Id = Guid.NewGuid(),
        //            DeleteTime=DateTime.Now
        //        }
        //        ]);
        //}
    }
}
